//跨域代理前缀
const API_PROXY_PREFIX = '/admin';
const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL+API_PROXY_PREFIX : API_PROXY_PREFIX;
//const BASE_URL = process.env.VUE_APP_API_BASE_URL
module.exports = {
    LOGIN: `${BASE_URL}/login`,
    ROUTES: `${BASE_URL}/sys/menu/routes`,
    //角色
    GETROLELIST: `${BASE_URL}/sys/role/list`,
    GETROLEINFO: `${BASE_URL}/sys/role/info`,
    SAVEROLE: `${BASE_URL}/sys/role/save`,
    UPDATEROLE: `${BASE_URL}/sys/role/update`,
    ROLESELECT: `${BASE_URL}/sys/role/select`,
    DELETEROLE: `${BASE_URL}/sys/role/delete`,
    //用户
    GETUSERLIST: `${BASE_URL}/sys/user/list`,
    GETUSERINFO: `${BASE_URL}/sys/user/info`,
    SAVEUSER: `${BASE_URL}/sys/user/save`,
    UPDATEUSER: `${BASE_URL}/sys/user/update`,
    DELETEUSER: `${BASE_URL}/sys/user/delete`,
    //菜单
    GETMENULIST: `${BASE_URL}/sys/menu/list`,
    GETMENUINFO: `${BASE_URL}/sys/menu/info`,
    SAVEMENU: `${BASE_URL}/sys/menu/save`,
    UPDATEMENU: `${BASE_URL}/sys/menu/update`,
    MENUSELECT: `${BASE_URL}/sys/menu/select`,
    DELETEMENU: `${BASE_URL}/sys/menu/delete`,
};
